<h2>My Heroes list</h2>
<div class="heroes-content">
  <div>
    <label for="">name: </label>
    <input #heroName placeholder="name">
    <button class="add" title="add hero" (click)="add(heroName.value);heroName.value=''">add</button>
  </div>
  <ul class="heroes left">
    <li *ngFor="let hero of heroes" [class.selected]="hero === selectedHero" (click)="onSelect(hero)">
      <a routerLink="/detail/{{hero.id}}">
        <span class="badge">{{hero.id}}</span> {{hero.name}}
      </a>
      <button class="delete" title="delete hero" (click)="delete(hero)">x</button>
    </li>
  </ul>
  <hero-detail class="right" [hero]="selectedHero"></hero-detail>
</div>